#include "Mediator.h"
#include "Colleague.h"
#include "ConcreteColleague1.h"
#include "ConcreteColleague2.h"
#include "ConcreteMediator.h"

#include <iostream>
using namespace std;

void test()
{
    Mediator* mediator = new ConcreteMediator();
    ConcreteColleague1* colleague1 = new ConcreteColleague1(mediator);
    ConcreteColleague2* colleague2 = new ConcreteColleague2(mediator);

    colleague1->send("hello world");
    colleague2->send("hello");
}

int main()
{
    test();
    return 0;
}